package com.myrule;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @AUTHOR LYF
 * @DATE 2022/2/5
 * @VERSION 1.0
 * @DESC
 */
@Configuration
public class MyRule {
    @Bean
    IRule rule(){
        return new RandomRule();
    }
}
